-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat: support fake variadic when length 1 not included #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support fake variadic when length 1 not included #51
Conversation
|
Can you include a screenshot of the generated documentation so that I can see it working? |
alice-i-cecile
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems quite reasonable and I'd like to fix this.
Can you add some tests to the library itself to ensure that this keeps working?
|
I do not know how to verify documentation generated by cargo-doc right now. Anyway, I will try in a few days. (I'm preparing my final exam and am very busy at this moment.) |
|
I've added tests. Both However, I do not know how to change the ci... |
BenjaminBrienen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's some good stuff right there
|
@alice-i-cecile Unicode 3.0 should be fine, right? |
|
Yep that's fine. |






Objective
fixes #42
It also supports fake variadic when length 1 not included.
Solution
Instead of
n == 1to judge if it's the first one, I triedn == input.start.max(1). This ensure that the first tuples will always have attributes. So that length 1 does not need including.And omit document like
down to 0.Testing
I checked with this command:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --example all_tuples --no-deps --openAnd
works as expected.
I also passed
cargo test